package section5_6;

import java.util.Random;

/**
 * Created by Hyman on 2017/6/12.
 *
 * 整形数组生成类
 */
public class ArrayGenerator {

    public int[] generateArray(int size) {
        int array[] = new int[size];
        Random random = new Random();
        for (int i = 0; i < size; i++) {
            array[i] = random.nextInt(10);
        }
        return array;
    }

}
